<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/page/share/taglib.jsp" %>
<%@ taglib prefix="zjf" uri="http://www.zjf.com.cn/mytag" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/style.css" />
</head>
<body>
<!-- 分页功能 start -->
<c:if test="${typeid==null || typeid == 0}">
<html:link action="/control/plat/platList.do?page=1">首页</html:link>,
<c:forEach begin="${pageBean.beginPage}" end="${pageBean.endPage}" var="p">
<c:if test="${p == pageBean.nowPage}">第${p}页,</c:if>
<c:if test="${p != pageBean.nowPage}"><html:link action="/control/plat/platList.do?page=${p}">第${p}页</html:link>,</c:if>
</c:forEach>
<html:link action="/control/plat/platList.do?page=${pageBean.totalPage }">末页</html:link>
&nbsp;
总记录数：${pageBean.totalRecords},总页数：${pageBean.totalPage},每页显示:${pageBean.maxResult}
</c:if>

<c:if test="${typeid!=null && typeid != 0}">
<html:link action="/control/plat/platList.do?page=1&typeid=${typeid}">首页</html:link>,
<c:forEach begin="${pageBean.beginPage}" end="${pageBean.endPage}" var="p">
<c:if test="${p == pageBean.nowPage}">第${p}页,</c:if>
<c:if test="${p != pageBean.nowPage}"><html:link action="/control/plat/platList.do?page=${p}&typeid=${typeid}">第${p}页</html:link>,</c:if>
</c:forEach>
<html:link action="/control/plat/platList.do?page=${pageBean.totalPage }&typeid=${typeid}">末页</html:link>
&nbsp;
总记录数：${pageBean.totalRecords},总页数：${pageBean.totalPage},每页显示:${pageBean.maxResult}
</c:if>
<!-- 分页功能 end -->
	<table class="table">
						<tr class= "row2">
							
							<td>版块名</td>
							<td>优先级</td>
							<td>所属类别</td>
							<td>版块简介</td>
							<td>是否可见</td>
							<td>创建时间</td>
							<td>修改</td>
							<td>删除</td>
							
						</tr>
						<c:forEach items="${datas}" var="data">
						<tr class= "row1">
							
							<td><font size=3 color=blue>${data.name }</font></td>
							<td>${data.level }</td>	
							<td><b>${data.platType.name }</b> (<html:link action="/control/plat/platList.do?typeid=${data.platType.id}">查找该类别下的版块</html:link>)</td>
							<td>${data.note }</td>
							<td>${data.visible }</td>
							
							<td>${data.createDate }</td>
							
							<td><zjf:privilege value="control.plat.edit"><html:link action="/control/plat/platView.do?id=${data.id}">修改</html:link></zjf:privilege> </td>
							<td><zjf:privilege value="control.plat.delete"><html:link action="/control/plat/platDelete.do?id=${data.id}">删除</html:link><font color="red" size="1"><b>帖子也会删除</b></font></zjf:privilege></td>	
						</tr>
						</c:forEach>
	</table>
<!-- 分页功能 start -->
<c:if test="${typeid==null || typeid == 0}">
<html:link action="/control/plat/platList.do?page=1">首页</html:link>,
<c:forEach begin="${pageBean.beginPage}" end="${pageBean.endPage}" var="p">
<c:if test="${p == pageBean.nowPage}">第${p}页,</c:if>
<c:if test="${p != pageBean.nowPage}"><html:link action="/control/plat/platList.do?page=${p}">第${p}页</html:link>,</c:if>
</c:forEach>
<html:link action="/control/plat/platList.do?page=${pageBean.totalPage }">末页</html:link>
&nbsp;
总记录数：${pageBean.totalRecords},总页数：${pageBean.totalPage},每页显示:${pageBean.maxResult}
</c:if>

<c:if test="${typeid!=null && typeid != 0}">
<html:link action="/control/plat/platList.do?page=1&typeid=${typeid}">首页</html:link>,
<c:forEach begin="${pageBean.beginPage}" end="${pageBean.endPage}" var="p">
<c:if test="${p == pageBean.nowPage}">第${p}页,</c:if>
<c:if test="${p != pageBean.nowPage}"><html:link action="/control/plat/platList.do?page=${p}&typeid=${typeid}">第${p}页</html:link>,</c:if>
</c:forEach>
<html:link action="/control/plat/platList.do?page=${pageBean.totalPage }&typeid=${typeid}">末页</html:link>
&nbsp;
总记录数：${pageBean.totalRecords},总页数：${pageBean.totalPage},每页显示:${pageBean.maxResult}
</c:if>
<!-- 分页功能 end -->
</body>
</html>